package com.library.web.controller.api;

import com.library.common.core.controller.BaseController;
import com.library.common.core.domain.AjaxResult;
import com.library.picture.books.service.IPictureBooksInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wanghongjie
 */
@RestController
@RequestMapping("/api/pictureBooks")
public class PictureBooksController extends BaseController {
    @Autowired
    private IPictureBooksInfoService pictureBooksInfoService;

    /**
     * 获取绘本管理详细信息
     */
    @GetMapping(value = "/pictureBookNo")
    public AjaxResult pictureBookNo(String pictureBookNo) {
        return AjaxResult.success(pictureBooksInfoService.selectPictureBooksInfoByNo(pictureBookNo));
    }
}
